package cn.wolfcode.designpattern.adapter;

/**
 * @author Leon
 * @date 2021/2/23
 * 序列化适配器
 */
public class SerializeAdapter extends ProtoBuf implements Serializer {

//    private ProtoBuf protobuf;
//
//    public SerializeAdapter(ProtoBuf protobuf) {
//        this.protobuf = protobuf;
//    }

    @Override
    public byte[] serialize(String msg) {
        return super.serialize(msg);
    }

    @Override
    public String deserialize(byte[] bytes) {
        return super.deserialize(bytes);
    }
}

